﻿using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using YFurion.Application;

namespace UpperComputer.Application
{
    public interface IBaseRolePermissionService : IEFCoreApplicationService<BaseRolePermissionDto, long,  BaseRolePermissionResultRequestDto>
    {
        Task DeleteAsync(string roleCode, CancellationToken cancellationToken = default);

        Task<List<BaseRolePermissionDto>> PermissionAsync(string roleCode,List<BaseMenuResultDto> menus, CancellationToken cancellationToken = default);
    }
}